package com.specialtreasure.freightdepot.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.app.core.util.ViewHolder;
import com.specialtreasure.freightdepot.model.SRegion;
import com.specialtreasure.freightdepot.R;
import java.util.List;

/**
 * Created by KUMA on 2017/7/25.
 */

public class PWRegionAdapter extends BaseObjectListAdapter {
    public PWRegionAdapter(Context context, List<? extends Object> datas) {
        super(context, datas);
    }

    @Override
    public View getItemView(int position, View convertView, ViewGroup parent) {
        convertView = getConvertView(convertView, R.layout.item_selectcity);
        TextView tv_item = ViewHolder.get(convertView, R.id.tv_item);
        SRegion s = (SRegion) mDatas.get(position);
        tv_item.setText(s.name);
        return convertView;
    }
}
